//从主程序接收一个字符串，将字符串中的数字和其它字符分开，形成二个字符串输出.
#include <stdio.h>
#include <stdio.h>
#include <string.h>

void get_num(char arr[],char digit1[])
{
    int cnt = 0;
    char *p = arr;
    while(*p)
    {
        if(*p >= '0' && *p <= '9')
        {
            *digit1++ = *p;
            cnt++;
        }
        p++;
    }
    digit1[cnt] = '\0';
}

int main(void)
{
    char str[40];
    char digit1[20];
    char alpha1[20];
    char *p = str;
    int cnt = 0,cnt2 = 0;
    //get_num(str, digit1);
    scanf("%s",str);
    while(*p)
    {
        if(*p >= '0' && *p <= '9')
        {
            digit1[cnt] = *p;
            cnt++;
        }
        else
        {
            alpha1[cnt2] = *p;
            cnt2++;
        }
        p++;
    }

    digit1[cnt] = '\0';
    alpha1[cnt2] = '\0';
    //puts(str);
    printf("%s %s %s",str,alpha1,digit1);
    printf("\nhello\n");
    return 0;
}